import request from "./request";
// 查询订单详情
export function getOrderDesc(id){
    return request.get(`/user/order/detail/${id}`)
}
// 支付
export function pay(obj){
    return request.put('/user/order/pay',obj)
}
//取消订单
export function cancelOrder(obj){
    return request.put('/user/order/cancel',obj)
}
//待支付
export function unPayed(obj){
    return request.post('/user/order/list/unPayed',obj)
}
//已完成
export function payed(obj){
    return request.post('/user/order/list/payed',obj)
}
//已取消
export function canceled(obj){
    return request.post('/user/order/list/canceled',obj)
}
//退款
export function doRefund(id){
    return request.put(`/user/order/refund/${id}`)
}
//再来一单
export function again(id){
    return request.post(`/user/order/again/${id}`)
}
//确认收货
export function confrims(){
    return request.put(`/user/order/confirm/${id}`)
}
